package com.txy.webmanagement.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.command.BaseModel;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import java.util.Date;

/**
 * 产品分类
 *
 * @author wf
 * @date 2019-04-01$
 **/
public class SysProductType extends BaseModel {
    @Column(name = "id", type = MySqlTypeConstant.INT, length = 8, isNull = false, isKey = true, isAutoIncrement = true)
    private Integer id;
    @Column(name = "uuid", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String uuid;
    /**
     * 类型所属公司
     */
    @Column(name = "p_company_id", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String pCompanyId;//所属公司Id
    /**
     * 类型名称
     */
    @Column(name = "type_name", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String typeName;
    /**
     * 父类Id
     */
    @Column(name = "parent_id", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String parentId;
    @Column(name = "enable", type = MySqlTypeConstant.INT)
    private Integer enable;
    @Column(name = "create_time", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getpCompanyId() {
        return pCompanyId;
    }

    public void setpCompanyId(String pCompanyId) {
        this.pCompanyId = pCompanyId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
}
